//
//  SAnimation.h
//  LSCodeLibrary
//
//  Created by Samuel on 15/3/31.
//  Copyright (c) 2015年 Samuel. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>

@interface SAnimation  : UIViewController{
}
+ (void)zoomIn: (UIView *)view andAnimationDuration: (float) duration andWait:(BOOL) wait;
/**
 *  按钮点击效果
 *
 *  @param view
 *  @param duration
 *  @param wait
 */
+ (void)buttonPressAnimate: (UIView *)view andAnimationDuration: (float) duration andWait:(BOOL) wait;
/**
 *  浮现
 *
 *  @param view
 *  @param duration
 *  @param wait
 */
+ (void)fadeIn: (UIView *)view andAnimationDuration: (float) duration andWait:(BOOL) wait;
/**
 *  消失
 *
 *  @param view
 *  @param duration
 *  @param wait
 */
+ (void)fadeOut: (UIView *)view andAnimationDuration: (float) duration andWait:(BOOL) wait;
/**
 *  左移
 *
 *  @param view
 *  @param duration
 *  @param wait
 *  @param length
 */
+ (void) moveLeft: (UIView *)view andAnimationDuration: (float) duration andWait:(BOOL) wait andLength:(float) length;
/**
 *  右移动
 *
 *  @param view
 *  @param duration
 *  @param wait
 *  @param length
 */
+ (void) moveRight: (UIView *)view andAnimationDuration: (float) duration andWait:(BOOL) wait andLength:(float) length;
/**
 *  上移
 *
 *  @param view
 *  @param duration
 *  @param wait
 *  @param length
 */
+ (void) moveUp: (UIView *)view andAnimationDuration: (float) duration andWait:(BOOL) wait andLength:(float) length;
/**
 *  下移
 *
 *  @param view
 *  @param duration
 *  @param wait
 *  @param length
 */
+ (void) moveDown: (UIView *)view andAnimationDuration: (float) duration andWait:(BOOL) wait andLength:(float) length;
/**
 *  旋转
 *
 *  @param view
 *  @param duration
 *  @param wait
 *  @param angle
 */
+ (void) rotate: (UIView *)view andAnimationDuration: (float) duration andWait:(BOOL) wait andAngle:(int) angle;
/**
 *  抖动动画
 *
 *  @return
 */
+ (void)shakeView:(UIView*)view isOpen:(BOOL)bools;
- (CABasicAnimation *)creatShake;


//其他
+ (void) frameAndShadow: (UIView *) view;
+ (void) shadowOnView: (UIView *) view andShadowType: (NSString *) shadowType;
+ (void) background: (UIView *) view andImagefileName: (NSString *) fileName;
+ (void) roundedCorners: (UIView *) view;
+ (void) finishAnimate:(BOOL)wait;






@property (strong,nonatomic)CABasicAnimation *cABasicAnimation;;



@end